﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.Articles;

namespace LeadThing.AbpZeroTemplate.Articles.Dtos
{
    /// <summary>
    /// 文章列表Dto
    /// </summary>
    [AutoMapFrom(typeof(Article))]
    public class ArticleListDto : EntityDto<long>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [DisplayName("标题")]
        public string Title { get; set; }
        /// <summary>
        /// 类别ID
        /// </summary>
        [DisplayName("类别ID")]
        public int CategoryId { get; set; }
        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件ID")]
        public int FileID { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int SortId { get; set; }
        /// <summary>
        /// 是否幻灯片
        /// </summary>
        [DisplayName("是否幻灯片")]
        public bool IsSlide { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }

        #region 扩展字段

        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryTitle { get; set; }

        /// <summary>
        /// 图片封面
        /// </summary>
        [DisplayName("图片封面")]
        public string ImgUrl { get; set; }

        #endregion
    }
}
